import { EnumEducation, EnumEducationType, EnumGender, EnumMemberIdentity, EnumMemberState, EnumWorkMode } from "@/apis/endpoint/model"
import { mapToOptions } from "@/utils/helper"

export const genderMap = new Map<EnumGender, string>([
  [EnumGender.男, "男"],
  [EnumGender.女, "女"],
  [EnumGender.保密, "保密"]
])
export const genderOptions = mapToOptions(genderMap)

export const identityMap = new Map<EnumMemberIdentity, string>([
  [EnumMemberIdentity.职场人, "职场人"],
  [EnumMemberIdentity.学生, "学生"]
])
export const identityOptions = mapToOptions(identityMap)

export const jobStatusMap = new Map<EnumMemberState, string>([
  [EnumMemberState.离职_随时到岗, "离职-随时到岗"],
  [EnumMemberState.在职_月内到岗, "在职-月内到岗"],
  [EnumMemberState.在职_考虑机会, "在职-考虑机会"],
  [EnumMemberState.在职_暂不考虑, "在职-暂不考虑"]
])
export const jobStatusOptions = mapToOptions(jobStatusMap)

export const workModeMap = new Map<EnumWorkMode, string>([
  [EnumWorkMode.全职, "全职"],
  [EnumWorkMode.兼职, "兼职"],
  [EnumWorkMode.实习, "实习"]
])
export const workModeOptions = mapToOptions(workModeMap)

export const educationMap = new Map<EnumEducation, string>([
  [EnumEducation.小学, "小学"],
  [EnumEducation.初中, "初中"],
  [EnumEducation.中专, "中专"],
  [EnumEducation.高中, "高中"],
  [EnumEducation.专科, "专科"],
  [EnumEducation.本科, "本科"],
  [EnumEducation.硕士, "硕士"],
  [EnumEducation.博士, "博士"],
  [EnumEducation.未知, "未知"]
])
export const educationOptions = mapToOptions(educationMap)

export const educationTypeMap = new Map<EnumEducationType, string>([
  [EnumEducationType.全日制, "全日制"],
  [EnumEducationType.非全日制, "非全日制"]
])
export const educationTypeOptions = mapToOptions(educationTypeMap)
